@media screen and (min-width: 1280px){
    .container{
        width: 1280px;
    }
}
h1 {
    margin: 0;
    padding: 0;
}
/* header区域  */
header {
    padding: 0 !important;
}
header .logo{
    background: skyblue;
}
header .logo a {
    display: block;
}
header .logo span {
    display: block;
    height: 50px;
    text-align: center;
    line-height: 50px;
    color: #fff;
    font-size: 18px;
}
header .logo a img{
    display: block;
}
/* nav部分  */
nav {
    background-color: #eee;
    border-bottom: 1px solid #ccc;
}
nav a {
    position: relative !important;
    display: block !important;
    height: 50px ;
    padding-left: 30px;
    color: #666;
    font-size: 16px;
    line-height: 50px !important;
}
nav a::before {
    position: relative;
    top: 2px;
    margin-right: 5px;
}
nav a:nth-child(2)::before {
    top: 1px;
}
nav a:hover {
    text-decoration: none;
    background-color: #fff;
    color: #333;
}
/* news区域  */
.news {
    border-bottom: 1px solid #ccc;
}
main ul li {
    float: left; 
    width: 25%;
    height: 128px;
    padding-right: 10px;
    margin-bottom: 10px;
}
main ul li:nth-child(1){
    width: 50%;
    height: 266px;
}
main ul li a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
main ul li a img {
    width: 100%;
    height: 100%;
}

main ul li a p {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 41px;
    padding: 5px 10px 0;
    margin: 0;
    background-color: rgba(0,0,0,0.7);
    font-size: 12px;
    color: #fff;
}
main ul li:nth-child(1) p {
    padding: 0 10px;
    font-size: 20px;
    line-height: 41px;
}
/* publish区域 */
.publish-box {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}
.publish-box img {
    padding-top: 20px;
}
/* aside 部分 */
.zgboke-img a{
    display: block;
    margin-bottom: 20px;
}
.hot {
    display: block;
    padding: 20px;
    padding-top: 0;
    border: 1px solid #ccc;
}
.hot:hover {
    text-decoration: none;
}
.hot button {
    margin-bottom: 10px;
}
.hot p {
    font-size: 12px;
}
/* 超小屏 */
@media screen and (max-width: 767px) {
    header nav a{
        font-size: 14px;
    }
    main ul li:nth-child(1){
        width: 100%;
        /* height: 266px; 不需要没被覆盖就和原来的一样除非height要变*/
    }
    main ul li {
        float: left; 
        width: 50%;
        /* height: 128px;
        padding-right: 10px;
        margin-bottom: 10px; 不需要理由如上*/
    }
    .publish-box article h3 {
        font-size: 16px;
    }
}
/* 超小和小  */
@media screen and (max-width: 991px) {
    header nav a{
        float: left;
        width: 20%;
    }
}
/* 小和中和大  */
@media screen and (min-width: 767px) {
    /* 上边不能设768px因为boostrap里xs是766px.如果设768px,那么,在767px图片元素还会存在(span还没出现)但却不居中 */
    header .logo a img {
        width: auto;
        margin: 0 auto;
    }
}
